export default {
	computed: {
		systemInfo() {
			let res = uni.getSystemInfoSync();
			return {
				screenHeight: res.screenHeight || 0,
				screenHeightRpx: res.screenHeight * (750 / res.windowWidth) || 0,
				screenWidth: res.screenWidth || 0,
				windowWidth: res.windowWidth || 0,
				windowHeight: res.windowHeight || 0
			};
		},
		getRemainHeight() {
			//得到乘下的高度，转成rpx
			let systemInfo = this.systemInfo;
			let px = systemInfo.windowHeight - uni.upx2px(100);
			return px * (750 / systemInfo.windowWidth);
		}
	}
}
